
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                      PREAMBLE                                 %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% DOCUMENT CLASS

\documentclass[11pt, a4paper, titlepage]{article}


%%% PACKAGES

\usepackage{amsmath, amsthm, amssymb}
%\usepackage[francais]{babel}
	% activates french hyphenation patterns
	% caption names and '\today' are in french
	% corrects the spacing for ':', '...' and vertical spaces
	% itemizeations begin with - instead of a big dot
%\usepackage[T1]{fontenc}
	% other font that can hyphenate words containing special french characters
\usepackage[cp1252]{inputenc}
	% use the filepage for the Linux character set
\usepackage{tabularx}
	% for tables with a variable columnwidth
\usepackage{textcomp}
	% for special characters
\usepackage{graphicx}
	% for everything having to do with graphics
%\usepackage[small]{caption}
	% for more flexible captions
\usepackage{nicefrac}
	% for 1-line fractions
\usepackage{fancybox}
	% usefull for putting mathematical content in a box
\usepackage{eurosym}
	% for the euro-symbol
\usepackage{pifont}
	% for goofy caracters
\usepackage{gensymb}
	% for some special characters like \degree
\usepackage{pdfpages}
	% for including PDF pages easily
%\usepackage[bookmarks=true]{hyperref}
	% for links


%%% OWN MACROS

\newcommand{\microm}{\(\mathrm{\mu m}\)}
\newcommand{\micros}{\(\mathrm{\mu s}\)}
\newcommand{\milis}{\(\mathrm{ms}\)}
\newcommand{\premier}{\(\mathrm{1^{er}}\)}
\newcommand{\mcarr}{\(\mathrm{m}^2\)}
\newcommand{\comment}[1]{\marginpar{\tiny #1}}
\newcommand{\mathematicaref}[1]{\ding{74} \themathematica \stepcounter{mathematica} #1}


%%% MODIFICATIONS

\addtolength{\voffset}{-1cm}
\addtolength{\textheight}{2cm}
\addtolength{\hoffset}{-1cm}
\addtolength{\textwidth}{2cm}
\linespread{1.1}
\hyphenation{con-tien-nent}
\hyphenation{con-nex-ion}
\hyphenation{con-nex-ions}

\addtolength{\headheight}{1.6pt}
\usepackage{fancyhdr}	% for cool looking headers
\pagestyle{fancy}	% configuration for fancyhdr
\lhead{\slshape Electronique pour le marXbot}

\numberwithin{equation}{section}
\newcounter{mathematica}
\setcounter{mathematica}{1}




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                                 DOCUMENT                                 %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\pagestyle{empty}



%%%%%%%%%%%%%%%%%%%%%%
%%%   TITLE PAGE   %%%
%%%%%%%%%%%%%%%%%%%%%%
\include{titlepage}



%%%%%%%%%%%%%%%%%%%%
%%%   ABSTRACT   %%%
%%%%%%%%%%%%%%%%%%%%

\newpage
\mbox{}
\newpage

\includepdf[pages=-, offset=1cm -1cm]{./abstract/abstract.pdf}

\renewcommand{\thepage}{\roman{page}}

\newpage
\mbox{}
\newpage

\includepdf[pages=-, offset=1cm -0.5cm]{./pdf/project-description.pdf}

\newpage
\mbox{}
\newpage



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%   TABLE OF CONTENTS   %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\tableofcontents
\pagebreak

\renewcommand{\thepage}{\arabic{page}}
\setcounter{page}{1}
\pagestyle{plain}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%   CHAPTER : INTRODUCTION   %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{Introduction}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%   CHAPTER : Conclusion   %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{Conclusion}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%   CHAPTER : Annexes   %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{Annexes}


%%%%%%%%%%%%%%%%%%%%%%%%
%%%   BIBLIOGRAPHY   %%%
%%%%%%%%%%%%%%%%%%%%%%%%

\include{Bibliography}


\end{document}